package service;

import dao.OrgnaztitionDao;
import entity.Orgnazition;

import java.util.List;

public class OrgnazitionService {
    OrgnaztitionDao orgnaztitionDao=new OrgnaztitionDao();
    /**
     * 显示全部
     * @return
     */
    public List<Orgnazition> OrgnaztitionShow() {
        return orgnaztitionDao.OrgnaztitionShow();
    }
    /**
     * 根据id进行禁用启用
     */
  public   int CardStatus(int id,int status){
        return orgnaztitionDao.orgnazitionStatus(id,status);
    }
    /**
     *
     * @param
     * @return
     */
  public    boolean selectId(String name){
        return orgnaztitionDao.selectId(name);
    }
    /**
     *
     */
    public int add(Orgnazition orgnazition){
        return orgnaztitionDao.Add(orgnazition);
    }
}
